﻿<ResourceDictionary 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:vm="clr-namespace:ViewModel;assembly=ViewModel"
  xmlns:view="clr-namespace:ViewTest"
>
    <DataTemplate x:Key="DiscussionTemplate">
        <DockPanel Width="120">
            <Button
              Command="{Binding Path=CloseCommand}"
              Content="X"
              DockPanel.Dock="Right"
              Width="16" Height="16" 
              />
            <ContentPresenter Content="{Binding Path=DisplayName}" />
        </DockPanel>
    </DataTemplate>      

    <DataTemplate DataType="{x:Type vm:MainViewModel}">
        <view:Window1 />
    </DataTemplate>
    
    <DataTemplate DataType="{x:Type vm:ContactListViewModel}">
        <view:Window1 />
    </DataTemplate>

    <DataTemplate DataType="{x:Type vm:DiscussionContainerViewModel}">
        <view:DiscussionContainer />
    </DataTemplate>

</ResourceDictionary>